<!--
  @author heguanghua
  @since 2019/06/12 19:34
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<table class="layui-hide" id="zmn-table" lay-filter="zmn-table" th:fragment="table">
    <thead>
    <tr>
        <th lay-data="{type:'checkbox', width:50, unresize:true, align:'center', fixed:'left'}"></th>
        <th lay-data="{field:'sort', width:60, unresize:true, sort:true, align:'center', edit:'text', fixed:'left'}">排序</th>
        <th lay-data="{field:'trackId', width:60, unresize:true, align:'center', fixed:'left'}">ID</th>
        <th lay-data="{field:'categName', width:120, unresize:true, align:'center',fixed:'left'}">跟单类型</th>
        <th lay-data="{field:'trackContent',width:180, unresize:false, align:'left', fixed:'left'}">跟单内容</th>
        <th lay-data="{field:'trackReasonStr',width:180, unresize:false, align:'center',fixed:'left'}">跟单缘由</th>
        <th lay-data="{field:'trackOperatorSystem', width:80, unresize:true, align:'center'}">系统发起</th>
        <th lay-data="{field:'level', width:120, unresize:true, align:'center'}">跟单等级</th>
        <th lay-data="{field:'trackOperator', width:200, unresize:false, align:'center'}">发起角色</th>
        <th lay-data="{field:'legacy', width:80, unresize:true, align:'center'}">是否遗留</th>
        <th lay-data="{field:'trackDeptId', width:200, unresize:false, align:'center'}">跟单部门</th>
        <th lay-data="{field:'bizType', width:120, unresize:false, align:'center'}">业务类型</th>
        <th lay-data="{field:'orderStatus', width:120, unresize:false, align:'center'}">订单状态</th>
        <th lay-data="{field:'billType', width:120, unresize:true, align:'center'}">单据类型</th>
        <th lay-data="{field:'trackTimeOut', width:200, unresize:true, align:'center'}">完结超时时间</th>
        <th lay-data="{field:'trackFirstHandleTimeOut', width:230, unresize:true, align:'center'}">首次处理超时时间</th>
        <!--<th lay-data="{field:'trackCreateTime', width:80, unresize:true, align:'center'}">生成时间</th>-->
        <th lay-data="{field:'status', width:80, unresize:true, align:'center'}">状态</th>
        <th lay-data="{field:'updateTime', width:230, unresize:true, align:'center'}">最近修改人/时间</th>
        <th lay-data="{field:'操作',width:80, unresize:true, align:'center', fixed:'right'}">操作</th>
    </tr>
    </thead>

    <tbody>
    <tr th:each="item:${items}">
        <td></td>
        <td th:text="${item.sort}">sort</td>
        <td th:text="${item.trackId}" class="">categId</td>
        <td th:text="${item.categName}" class="layui-gray">categName</td>
        <td th:text="${item.trackContent}" class="layui-gray">trackContent</td>
        <td th:text="${item.trackReasonStr}" class="layui-gray">trackReasonStr</td>
        <td th:text="${item.trackOperatorSystem}" class="layui-gray">trackOperatorSystem</td>
        <td th:text="${T(com.zmn.plat.common.dictionary.OrderTrackDict).getOrderTrackLevel(item.level)}" class="layui-gray">level</td>
        <td th:text="${item.trackOperator}" class="layui-gray">trackOperator</td>
        <td th:text="${item.legacy==2?'是':'否'}" class="layui-gray">legacy</td>
        <td th:text="${item.trackDeptId}" class="layui-gray">trackDeptId</td>
        <td th:text="${T(com.zmn.plat.common.dictionary.ProductDict).translateBizType(item.bizType,'、')}" class="layui-gray">bizType</td>
        <td th:text="${item.orderStatus}" class="layui-gray">orderStatus</td>
        <td th:text="${item.billType}" class="layui-gray">billType</td>
        <td th:text="${item.trackTimeOut}" class="layui-gray">trackTimeOut</td>
        <td th:text="${item.trackFirstHandleTimeOut}" class="layui-gray">trackFirstHandleTimeOut</td>
        <!--<td th:text="${item.trackCreateTime}" class="layui-gray">trackCreateTime</td>-->
        <td th:text="${item.status==2?'正常':'停用'}">status</td>
        <td th:text="${(item.updater==null?'':item.updater)+'/'+(item.updateTime==null?'':#dates.format(item.updateTime, 'yyyy-MM-dd HH:mm:ss'))}">updateTime</td>
        <td>
            <div>

                <a class="updateClass" th:lay-href="|/orderconfig/track/detail.action?trackId=${item.trackId}|"
                   th:if="${#authPermit.checkPermit('/orderconfig/track/detail.action')}" style="color: #00a0e9">修改</a>
            </div>
        </td>
    </tr>
    </tbody>
</table>
